package com.example.kemgdemo.dto.req;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * 学号：1401030048
 * Created by 梁嘉伟 on 2019/7/11
 */
@Getter
@Setter
public class AddToiletReq {

    private Long BuildingId;

    @Range(min = 1, max = 80, message = "超过范围")
    private Integer floor;

    @Range(min = 1, max = 30, message = "超过范围")
    private Integer maxsize;

    @NotNull(message = "性别不能为空")
    private Integer gender;

    private Integer isActive = 0;

}
